5.5
MEDIUM CVSS 3.1
CVE-2024-26866
"Freescale LPSPI Use-After-Free Kernel Null Pointer Dereference"
Description

In the Linux kernel, the following vulnerability has been resolved: spi: lpspi: Avoid potential use-after-free in probe() fsl_lpspi_probe() is allocating/disposing memory manually with spi_alloc_host()/spi_alloc_target(), but uses devm_spi_register_controller(). In case of error after the latter call the memory will be explicitly freed in the probe function by spi_controller_put() call, but used afterwards by "devm" management outside probe() (spi_unregister_controller() <- devm_spi_unregister() below). Unable to handle kernel NULL pointer dereference at virtual address 0000000000000070 ... Call trace: kernfs_find_ns kernfs_find_and_get_ns sysfs_remove_group sysfs_remove_groups device_remove_attrs device_del spi_unregister_controller devm_spi_unregister release_nodes devres_release_all really_probe driver_probe_device __device_attach_driver bus_for_each_drv __device_attach device_initial_probe bus_probe_device deferred_probe_work_func process_one_work worker_thread kthread ret_from_fork

INFO

Published Date :

April 17, 2024, 11:15 a.m.

Last Modified :

Jan. 27, 2025, 3:08 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2024-26866 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
This vulnerability can be resolved by updating the Linux kernel packages.
  • Update the affected Linux kernel packages.
  • Reboot the system to apply the update.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-26866 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-26866 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-26866 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-26866 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 27, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 6.6.23 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.8 up to (excluding) 6.8.2
    Changed Reference Type https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f No Types Assigned https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f Patch
    Changed Reference Type https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f No Types Assigned https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f Patch
    Changed Reference Type https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861 No Types Assigned https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861 Patch
    Changed Reference Type https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861 No Types Assigned https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861 Patch
    Changed Reference Type https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68 No Types Assigned https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68 Patch
    Changed Reference Type https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68 No Types Assigned https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68 Patch
    Changed Reference Type https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea No Types Assigned https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea Patch
    Changed Reference Type https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea No Types Assigned https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f
    Added Reference https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861
    Added Reference https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68
    Added Reference https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 17, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: spi: lpspi: Avoid potential use-after-free in probe() fsl_lpspi_probe() is allocating/disposing memory manually with spi_alloc_host()/spi_alloc_target(), but uses devm_spi_register_controller(). In case of error after the latter call the memory will be explicitly freed in the probe function by spi_controller_put() call, but used afterwards by "devm" management outside probe() (spi_unregister_controller() <- devm_spi_unregister() below). Unable to handle kernel NULL pointer dereference at virtual address 0000000000000070 ... Call trace: kernfs_find_ns kernfs_find_and_get_ns sysfs_remove_group sysfs_remove_groups device_remove_attrs device_del spi_unregister_controller devm_spi_unregister release_nodes devres_release_all really_probe driver_probe_device __device_attach_driver bus_for_each_drv __device_attach device_initial_probe bus_probe_device deferred_probe_work_func process_one_work worker_thread kthread ret_from_fork
    Added Reference kernel.org https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact